<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="parentId" name="parentDrugstoreId" type="hidden"
								th:value="${store.parentId}">
								<input id="drugstoreId" name="drugstoreId" type="hidden"
								th:value="${store.menuId}">
							<input id="areaCode" name="areaCode" type="hidden">
							<input id="areaName" name="areaName" type="hidden">
							<input id="provinceCode" name="province" type="hidden"
							th:value="${store.province}">
							<input id="cityCode" name="cityCode" type="hidden"
							th:value="${store.city}">
							<input id="villageCode" name="villageCode" type="hidden"
							th:value="${store.village}">
							<div class="form-group">
							<label class="col-sm-3 control-label">父药店/公司：</label>
							<div class="col-sm-8">
								<div id="menuTree"></div>
							</div>
						    </div>	
							<div class="form-group">
								<label class="col-sm-3 control-label">药店/公司名称：</label>
								<div class="col-sm-8">
									<input id="drugstoreName" th:value="${store.name}" name="drugstoreName" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">类型：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{store.type}" name="drugstoreType" value="1" /> 公司
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{store.type}" name="drugstoreType" value="2" /> 药店
									</label> 
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">法定代表人：</label>
								<div class="col-sm-8">
									<input id="legalPersonName" th:value="${store.legalPersonName}" name="legalPersonName" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证：</label>
								<div class="col-sm-8">
									<input id="legalPersonId" th:value="${store.legalPersonId}" name="legalPersonId" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">注册日期：</label>
								<div class="col-sm-8">
								    <input type="text" id="regDate" th:value="${store.regDate}" name="regDate" class="form-control">
								</div>
							</div> 
							
							<div class="form-group">
								<label class="col-sm-3 control-label">注册资金：</label>
								<div class="col-sm-8">
								    <input type="number" th:value="${store.regCapital}" id="regCapital" name="regCapital" class="form-control">
								</div>
							</div> 
							
							<div class="form-group">
								<label class="col-sm-3 control-label">电话：</label>
								<div class="col-sm-8">
									<input id="phone" th:value="${store.phone}" name="phone" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">省：</label>
								<div class="col-sm-8">
									<select class="form-control" value="四川省" name="province" id="Province">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">市：</label>
								<div class="col-sm-8">
									<select class="form-control" name="city" id="City">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">县/区：</label>
								<div class="col-sm-8">
									<select class="form-control" name="village" id="Village">
                                    <option> 请选择 </option>
                                    </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">地址：</label>
								<div class="col-sm-8">
									<input id="address" th:value="${store.address}" name="address" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">经度：</label>
								<div class="col-sm-8">
								    <input type="number" th:value="${store.longitude}" step="0.1" id="longitude" name="longitude" class="form-control">
								</div>
							</div> 
							<div class="form-group">
								<label class="col-sm-3 control-label">纬度：</label>
								<div class="col-sm-8">
								    <input type="number" th:value="${store.latitude}" step="0.1" id="latitude" name="latitude" class="form-control">
								</div>
							</div> 
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行：</label>
								<div class="col-sm-8">
									<input id="bank" th:value="${store.bank}" name="bank" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">银行帐号：</label>
								<div class="col-sm-8">
									<input id="account" th:value="${store.account}" name="account" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">社会信用代码：</label>
								<div class="col-sm-8">
									<input id="creditCode" th:value="${store.creditCode}" name="creditCode" class="form-control" type="text">
								</div>
							</div>
                            <div class="form-group">
								<input id="content" th:value="${store.introduction}" name="introduction" type="hidden"> <label
									class="col-sm-1 control-label">简介：</label>
								<div class="col-sm-11">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{store.flag}" name="flag" value="1" /> 启用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{store.flag}" name="flag" value="0" /> 禁用
									</label> 
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/drugstore/store/edit.js">
	</script>
</body>
</html>
